home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / MacTCPToolBx / TCP XCMD Docs / card_6201.txt < prev    next >
Text File  |  1989-06-01  |  942b  |  34 lines

  1. -- card: 6201 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3170
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 9
  9. ----- text -----
  10. Function:
  11.  
  12. -- part contents for background part 1
  13. ----- text -----
  14. splitByWord(string,firstWord,lastWord)
  15.  
  16. -- part contents for background part 2
  17. ----- text -----
  18. Return words firstWord-lastWord for every line in string.
  19.  
  20. -- part contents for background part 3
  21. ----- text -----
  22. string
  23. firstWord
  24. lastWord
  25.  
  26. -- part contents for background part 7
  27. ----- text -----
  28. the string to be split
  29. the number of the first word in each line to return
  30. the number of the last word in each line to return
  31.  
  32. -- part contents for background part 4
  33. ----- text -----
  34. Return a string with one line for each line in the original string, and in the same order, but consisting of a subset of the words in the original line. Only words firstWord through lastWord are made a part of the output string to be returned.